From 654afeb8597607ceedd40085360b2595c17381e2 Mon Sep 17 00:00:00 2001 From: justbur Date: Thu, 9 Jul 2015 20:49:37 -0400 Subject: [PATCH] Fix bug in populate buffer --- which-key.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/which-key.el b/which-key.el index cbc3a2b87b1..4605e73cc1c 100644 --- a/which-key.el +++ b/which-key.el @@ -569,7 +569,8 @@ the maximum number of lines availabel in the target buffer." (defun which-key/populate-buffer (prefix-keys formatted-keys column-width sel-win-width) "Insert FORMATTED-STRINGS into which-key buffer, breaking after BUFFER-WIDTH." - (let* ((vertical-mode (member which-key-side-window-location '(left right))) + (let* ((vertical-mode (and (eq which-key-popup-type 'side-window) + (member which-key-side-window-location '(left right)))) (prefix-w-face (which-key/propertize-key prefix-keys)) (prefix-len (+ 2 (length (substring-no-properties prefix-w-face)))) (prefix-string (when which-key-show-prefix -- 2.30.2